package test;

import com.xiaoxu.entry.Employee;

public class PassParameters {

    public static void main(String[] args) {
        /*Employee employee = new Employee();
        employee.setName("xiaoxu");
        System.out.println(employee);
        updateValue(employee);
        System.out.println(employee);
        Employee employee2 = updateValue2(employee);
        System.out.println(employee);
        System.out.println(employee2);*/
        int value = 1;
        System.out.println(value);
        updateBasicsValue(value);
        System.out.println(value);
    }

    public static void updateBasicsValue(int a) {
        a = 2;
    }

    public static void updateValue(Employee employee) {
        employee.setName("qiaoqiao");
        employee.setAge(20);
    }

    public static Employee updateValue2(Employee employee) {
        employee.setName("hanhan");
        employee.setAge(20);
        employee.setSex('男');
        return employee;
    }
}
